Adds readme.
Adds missing variable declarations.