Updated the commends and added a main view controller.