modified code and updated documentation