Documentation for code

Please don't merge yet