all files are now read in as buffers. Adding more algorithms