Update collect_data and eweestats

eweestats.sh for being script
added docstrings