Tweaks and documentation added