Misc cleanup

Added code to pass FCodes
Fixed issue with converting  2d files
Added options for command line processing of files.