Added code documentation. Started implementing class initialization with dicts