initialized npm, added some logic/tests