Clean-up code, add annovar functions and database dependencies