Merge pull request #11 from RoxasShadow/master

Add write APIs and perform refactoring
README: fix code indentation