Improved sam parser written in Go