Added logic to make sure filepath argument adds a final '/' to the directory name if not included
Added roxygen options to automate documentation building to the project