added header status codes and texts
removed typical joomla methods and made it more flexible
added function parameters and transform type for each