fixed errors when linking with default functions
added new macro INIT_CLASS()
fixed default_functions