platinum master

todo:

fix main for correct indented output
fix mains error checking capability on input file