removed debugging output and updated documentation