fix #19: ls command does not work
fix HEAD entry for error messages in OperationFailed
Merge pull request #20 from kartoch/master

fix #19 and add  HEAD entry for error messages in OperationFailed