Added support for custom functions. New exceptions reporting system. Added new example.
Added new example of library usage.