Fix minor bugs in Mesh class and implement main()
Update dummy object
Fix main and seg fault due to attempt to write in a file