A computational study of Rydberg excitons and defects in cuprous oxide