Added bezier curves and reworked curve system.