add function to write ship models to file and created ship models