added most of smooth curve system. Check example 16 for bug related to size.