add documentation pages, bugfixes

Now, I must type the documentation /o\