update readme and extracted code from index
0.4.1