Added dynamic library support, replay buffers, organized code. Need to fix sound.