Added options to the cmake file and updated the build documentation.