Adds readme.
Small refactors.