remove unused helper functions
cosmetic changes
add prototypes for eq? and eqv?