Completed all code, fixed a spaces-in-path bug