changed implementation to avoid an os.Exit (it returns an error instead)
fixed formatting to match the original
Merge pull request #1 from gabstv/prglazig

Changed implementation to avoid an os.Exit (it returns an error instead)