merged tcursorwrap() with tnewline(), added few comments and updated copyright.