add dict func
Merge branch 'adddict' of https://github.com/huntbao/piggyreader into adddict

Conflicts:
	.idea/workspace.xml