Adds save to local directory functionality
Fixes problems associated with the previous commit