added function to readme
now handling absolute and relative paths
corrected basic test