Changed logging for programs to write stderr as warnings instead of errors
Refactored DataFactory