Patched a bug in Replica.scala where now a Replica will wait for message
from primary before accepting any messages
Improved Documentation