Add an install target to CMakeLists

Also includes some general cleanup of the CMakeLists file.