Minor fixes to use default namespace for php functions, some formatting changes
Fixed name of permission in Viewquestion controller