added simple example for template.
template with inheritence (!) and samples.
use xss/quite for __get.
re-arranged code and added some comment.