Public modifiers in functions; Code compliance

The Joomla! code compliance requires perhaps some more modifications, but this is a head start.