documentaion

I wrote some documentation in README.md and doxygen comments.
Please check it out.