Text this: Formation, Energetics, and Electronic Properties of Graphene Monolayer and Bilayer Doped with Heteroatoms