standardised function/class names. wread/write functions and inherant va...

...riables are now private