Also changed signature of bevel function to take integer for segments instead of float, which is just wrong.