some changes for ruby style guide compliance
fixed tab complete for cases such as spaces in filenames