adding antie
Adding test with dependancy on sinon
Updated jsDoc and code tidy