Edited code snippets and explanations from github.io and merged them into README