added file writing, switched users and hotels to 0 indexing, cleaned
debugging and comments