Add comments and a little documentation
Add comments and a little documentation