empty scandata file to be initialized with default xml
refactor polling into separate file/classes
improve exception handling