Bugfixing and Line mode added.

Now no warnings when compiling!