added some documentation/comments
newline at end of file
new function copy_properties_db
new function copy_properties_nonew_db
added directory for template objects
new option for local database, new function poly_db_one
refactor code to remove duplication