Added Wenlin import. Removed vtrain stuff. Decoupled adding a record from flushing to disk.