Implemented memStore and command input from file