Attempted to make compilable

+fixed many minor things
-unable to figure out the view class problems