Fixed typos
First working version! Be wary...
Added documentation