Make functions that must be used internally private (except for the ones used by the templates);
Started documenting component;
Function names were modified conform classical naming (except for the ones used by the templates, that are still preceded by _).