Add open source license and re-format all source code

Signed-off-by: Kevin Liu <airk908@gmail.com>
Update readme

Signed-off-by: Kevin Liu <airk908@gmail.com>