Adding braces, fixing tab/space mix, adding checks
Makescript should be executable
Adding CMakeLists.txt for cmake-based compilation
Adding support for "-h" for help