added demo code - still need to debug offset locations
fixed xy padding
minor beautifications - now need to work on documentation