changes to scoring, and added function comments
Changes to output file, README