* Added limitations on the min and max size of the segments + fixed drawing