add simple security code mechanism
some more documentation