updated readme, added gateway discovery, fixed CLI bug, refactored a bit
simplified parser