remove printout
Separating into multiple files. Adding xml status checks.