changed ternaries and examples to use kwargs (close #3)