code cleanup
added possibility to use an array as data source
fixed empty dom elements being displayed
Merge pull request #7 from dotch/master

array stuff