minor code cleanup
fix bug in getList
Merge pull request #4 from BobRay/bobray

Bobray