update documentation
added new method to print file and adapt library to python3