made paths module look relative to location of file rather than current working directory.  made parse() function return parses or segments rather than nothing.  some code cleanup