Implemented file opening. Fixed multiple rendering bug. Refactored code to a class based structure.