Universality, irrelevant surface operators, and corrections to scaling in systems with free surfaces and defect planes