Use logging instead of print and if debug statements
Add optparse, and log configs.
Ignore eclipse stuff