added further documentation to proj_3.cpp