fix some typo; add Line support

Signed-off-by: anti-freak <antifreak2011@gmail.com>