Fixed ofstream error and set precision.  Also added -std=c++11 to make file.