Rewrite grades parsing (#6)
Expand grades parsing sed script