code corrected
Documentation updated