Delete useless stuff. Update txt
Updated the method to match the javadoc