Removed code and added documentation

This is merging what I learnt with what I thought