fixed on the known issues that came up during initial testing.
back ported for Drupal 7
Initial working version of the module