Fixed a potential bug, updated some code that was out-of-date, and made
something work again... Not sure what.
Added path separator.
Merge pull request #39 from Tribex/object_rewrite

Added path separator and fixed some bugs.