added text forms of the existing mbeddr code for online readibility.