Development and Application of Numerical Techniques for General-Relativistic Magnetohydrodynamics Simulations of Black Hole Accretion