Improve command parser. Implement command file import. Fix variable scope inside functions.