added collision functions
added module exports