adding comments to explain important methods
fixed bugs related to running the app on slightly older phones, iOS