set checked() to return instead of echo
instantiate class

Signed-off-by: Daan Kortenbach <daan@kortenbach.org>