fixed wrong escapes
fixed tabbing
style
changed some mandatory checks to REQUIRE