Fixed small bugs
Fixed replication manager to mostly work, need to impliment crash cases