changes to layout, added documenation and file reading modifications