added ability to change warpmode. Resolves #8
binding code cleanup