added shebang for bash
removed dependancy for xmlcat
removed sed with recode-filter to make dos2unix-conversation
cleanup and rewrite to use functions and check for tools before using