Extract cols, rows in shader (will become uniforms in the near future)
Refactoring, store hsterm related code in Hsterm module