add option and refactor

add option to customize title. rename heading to resource. and do some
style fixes.
style fixes
allow any object that responds to to_s
fix typo
don't apply titleize here