copied in Buffered files, updated code to compile