refactoring & changes for different formats of data
fixes for 500 Internal server error reporting and expiring date for WNS
renaming plain into txt