more work done. added command line options debug, file, and target
broke it
i need to check the clhs more