Added more elaborated exceptions and fixed tests
Added documentations
Finished docs