Added variable line width and bug fixes