Some refactoring and comments.
More comments.
Some beautification.
Update readme.