sped up removeDuplicates function and added return statement to endTimer
added io alias