Bugfixes, autoload generator and example