fixed bugs, debug mode, jump table, file reading, cmd line args