some binding and test done
fixed bug: stack could be corrupted after calling toList
some minor changes, just to push