Added interpolate and pulse methods and fixed some minor issues.