refactored Edge class into TemplateLine class
fixed inconsistent indentation
Merge pull request #381 from rinkk/EdgeLineMerge

TemplateLine refactoring