Fixed non-compiling code and removed temporary files.