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