Documentation updated. Redundant code removed.