Updated library, added test and grunt for building