Refactor/rakefile

I've tried to refactor the build process a little bit. The list-bio method is very large. I think this will need to be refactored down into smaller methods otherwise it could become quite difficult to maintain.