problem 1 done.
ignoring data files
problem 2 done!
p3 initial
moved common things to a separate file, did problem 3
Merge branch 'master' of https://github.com/nyucusp/gx5003-fall2013
updated to write to output file