Rewrite of code

- Consistence with {
- Consistence with (
- Reduced length of too long lines
- Renamed instance variables adding _ in front of name
Privatisation of needed methods

Added Class Extensions to establish private methods