Merge pull request #9 from ysangkok/master

use max_..._bytes like API spec dictates
Merge pull request #11 from ysangkok/master

trigger E_USER_ERROR when opendir fails