Finished code loading, added comments

removed debug code