completed; parses commands into a path array