Added error_reporting(E_ALL); to catch silly mistakes
Fixed some silly errors