issue #6, added list command

Implemented, tested on Linux and windows.