closed file and added documentation