Deleted most of the extraneous code in viewcontroller.m
Cleaned up more extraneous code.