Added priority calculation function in hotstuff module, minfixes on requirements
Added missing files