improved log function.
make class name mandatory.
add some warnings when you are overwriting existing elements.
nicer toString function for pacaclass instances
some optimization and code cleanup