cleanup - added a few checks - more documentation - adding a paths argument