move module exports past function decrarations
remove unused module imports and improved module structure