adding function to get readme files; fixing bugs