diff --git a/.gitignore b/.gitignore
index 0c136c1..f5cfe3b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ netcalc
 test/results
 test/netcalc.pid
 .gitconfig
+.idea
\ No newline at end of file
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d31eda2
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,7 @@
+cmake_minimum_required(VERSION 3.5)
+project(netcalc)
+
+set(CMAKE_C_STANDARD 11)
+set(SOURCE_FILES netcalc.c)
+
+add_executable(netcalc ${SOURCE_FILES})
\ No newline at end of file
diff --git a/netcalc.c b/netcalc.c
index 5716970..e2b0103 100644
--- a/netcalc.c
+++ b/netcalc.c
@@ -261,6 +261,9 @@ int client() {
     return 0;
 }
 
+/// The main method, starts depending on the args as client or server
+/// @param argc argument count
+/// @param argv array of options, -c for client followed by hostname and port
 int main(int argc, char *argv[]) {
     SOCKFD = 0;
     struct sigaction action;