Added functions and a readme + bugfixes