Revision 2

Added commenting and where applicable changed file paths to be variables
instead of hard coded.