Created docümentation and bugfixes