Fixed errors and got some basic stuff working