Fixed minor bugs and fixed npm ignore file