created npm package and added a bit of structure