add security and more documentation