added comments and printing to different files
added matlab file for printing