Adding protein mass calculation function to protein module.