rename $termsOfService into $termsOfServiceExtension
add typehint
correct method comments