Added more prototypes to the header and implemented find