Added TODO for keeping track of bugs and such.
Noticed that it doesn't work for files outside of working directory.
Substantial improvements in handling file paths.
Updated docs to reflect changes.
Added some extra checking and error handling.