add length method
prefer c++ style comments
format
fix text rendering with line placement on corners - refs #2364