Separated more settings from the code

Added functionality to read printer name, ip and type from a texfile
instead of hardcoding it into the program.