fixed helps and added script option for reading from stdin