Complete re-work to make like rax plugin

Hi there! Another shot - and I had decided to completely revamp it to be like the rax dynamic inventory plugin (and gave attribution)