add licenese, comments 

looking over this, I slapped this together as I needed at work and it's *fairly without value*