Adds just a little bit of documentation
Implements simple validation machanism