Updated npmignore and removed redundant code