Changed class functions and attributes from private to public,
to make extending classes easier.