Severe indentation issues resolved. Superfluous, nonfunctional gravity functions removed