add Line to primitives
minor fixes and comments