added module exports
fixed put delta calculation
fixed delta calculations
added tests for delta