Changed CMakeLists to support building on Ubuntu
Added support for different start directions