fixed minor bugs giving errors updated imake for easier edits