Update main.cpp

-Add deallocation.
-Deleted unnecessary comments.
-Improve list of flats.