Run autoformatter and removed the menu hook
Added a more verbose errooutput
Removed some php5.3 incompatibilities and fixed tests