added function for creating maps in mapper file, various supporting functions in other files