reworked the pacakge for publishing to npm
updated rule spec to test current implementation