Added changeable linewidth + minor bugfixes