optional classes param to list classes

untested code, sorry
fixed list-classes match
pass nil as count instead of array length
Merge pull request #2 from Faek/master

Optional parameter to list-classes command