Converted string casts on paths from get_path to native to_string method.
Lots more comments/documentation.