implemented the sam stats into main script, not tested though
fixed author