added -h and change output