Updated documentation and README
Renamed internal variables