diff --git a/.gitignore b/.gitignore
index c6cf9bf..05bf491 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,6 +24,7 @@ downloads/
eggs/
.eggs/
lib/
+!/lib
lib64/
parts/
sdist/
diff --git a/lib/_index.cpp b/lib/_index.cpp
new file mode 100644
index 0000000..e274cfb
--- /dev/null
+++ b/lib/_index.cpp
@@ -0,0 +1,8 @@
+#ifndef __COMFORTABLE_SWIPE__index_cpp__
+#define __COMFORTABLE_SWIPE__index_cpp__
+
+#include "gesture/_index.cpp"
+#include "service/_index.cpp"
+#include "util/_index.cpp"
+
+#endif /* __COMFORTABLE_SWIPE__index_cpp__ */
diff --git a/lib/_index.hpp b/lib/_index.hpp
new file mode 100644
index 0000000..ce0849d
--- /dev/null
+++ b/lib/_index.hpp
@@ -0,0 +1,8 @@
+#ifndef __COMFORTABLE_SWIPE__index_hpp__
+#define __COMFORTABLE_SWIPE__index_hpp__
+
+#include "gesture/_index.hpp"
+#include "service/_index.hpp"
+#include "util/_index.hpp"
+
+#endif /* __COMFORTABLE_SWIPE__index_hpp__ */
diff --git a/lib/_macro.cpp b/lib/_macro.cpp
new file mode 100644
index 0000000..494442a
--- /dev/null
+++ b/lib/_macro.cpp
@@ -0,0 +1,12 @@
+#ifndef __COMFORTABLE_SWIPE__macro_hpp__
+#define __COMFORTABLE_SWIPE__macro_hpp__
+
+#ifndef __COMFORTABLE_SWIPE__CONFIG__
+#define __COMFORTABLE_SWIPE__CONFIG__ "/usr/local/share/comfortable-swipe/comfortable-swipe.conf"
+#endif /* __COMFORTABLE_SWIPE__CONFIG__ */
+
+#ifndef __COMFORTABLE_SWIPE__VERSION__
+#warning __COMFORTABLE_SWIPE__VERSION__ "must be defined."
+#endif /* __COMFORTABLE_SWIPE__VERSION__ */
+
+#endif /* __COMFORTABLE_SWIPE__macro_hpp__ */
diff --git a/lib/_python.cpp b/lib/_python.cpp
new file mode 100644
index 0000000..fcddd3e
--- /dev/null
+++ b/lib/_python.cpp
@@ -0,0 +1,8 @@
+#ifndef __COMFORTABLE_SWIPE__python_cpp__
+#define __COMFORTABLE_SWIPE__python_cpp__
+
+#include "service/_python.cpp"
+#include "util/_python.cpp"
+#include "comfortable-swipe.cpp"
+
+#endif /* __COMFORTABLE_SWIPE__python_cpp__ */
diff --git a/lib/comfortable-swipe b/lib/comfortable-swipe
new file mode 100644
index 0000000..6465c73
--- /dev/null
+++ b/lib/comfortable-swipe
@@ -0,0 +1 @@
+#include "comfortable-swipe.cpp"
diff --git a/lib/comfortable-swipe.cpp b/lib/comfortable-swipe.cpp
new file mode 100644
index 0000000..1f10dd1
--- /dev/null
+++ b/lib/comfortable-swipe.cpp
@@ -0,0 +1,26 @@
+#ifndef __COMFORTABLE_SWIPE__
+#define __COMFORTABLE_SWIPE__
+
+/*
+Comfortable Swipe
+by Rico Tiongson
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+*/
+
+#include "_macro.cpp"
+#include "_index.hpp"
+#include "_index.cpp"
+
+#endif /* __COMFORTABLE_SWIPE__ */
diff --git a/lib/gesture/_index.cpp b/lib/gesture/_index.cpp
new file mode 100644
index 0000000..5de8bb2
--- /dev/null
+++ b/lib/gesture/_index.cpp
@@ -0,0 +1,9 @@
+#ifndef __COMFORTABLE_SWIPE__gesture_index_cpp__
+#define __COMFORTABLE_SWIPE__gesture_index_cpp__
+
+#include "_index.hpp"
+#include "xdo_gesture.cpp"
+#include "swipe_gesture.cpp"
+#include "swipe_gesture.regex.cpp"
+
+#endif /* __COMFORTABLE_SWIPE__gesture_index_cpp__ */
diff --git a/lib/gesture/_index.hpp b/lib/gesture/_index.hpp
new file mode 100644
index 0000000..9c097c5
--- /dev/null
+++ b/lib/gesture/_index.hpp
@@ -0,0 +1,7 @@
+#ifndef __COMFORTABLE_SWIPE__gesture_index_hpp__
+#define __COMFORTABLE_SWIPE__gesture_index_hpp__
+
+#include "xdo_gesture.h"
+#include "swipe_gesture.h"
+
+#endif /* __COMFORTABLE_SWIPE__gesture_index_hpp__ */
diff --git a/lib/service/_index.cpp b/lib/service/_index.cpp
new file mode 100644
index 0000000..94a6fb5
--- /dev/null
+++ b/lib/service/_index.cpp
@@ -0,0 +1,15 @@
+#ifndef __COMFORTABLE_SWIPE__service_index_cpp__
+#define __COMFORTABLE_SWIPE__service_index_cpp__
+
+#include "_index.hpp"
+#include "autostart.cpp"
+#include "buffer.cpp"
+#include "config.cpp"
+#include "debug.cpp"
+#include "help.cpp"
+#include "restart.cpp"
+#include "start.cpp"
+#include "status.cpp"
+#include "stop.cpp"
+
+#endif /* __COMFORTABLE_SWIPE__service_index_cpp__ */
diff --git a/lib/service/_index.hpp b/lib/service/_index.hpp
new file mode 100644
index 0000000..2ff0052
--- /dev/null
+++ b/lib/service/_index.hpp
@@ -0,0 +1,26 @@
+#ifndef __COMFORTABLE_SWIPE__service_index_hpp__
+#define __COMFORTABLE_SWIPE__service_index_hpp__
+
+#include