added comments on the code

Signed-off-by: Stefan Prisca <stefan.prisca@gmail.com>
Update docs

Signed-off-by: Stefan Prisca <stefan.prisca@gmail.com>