Working on improving grid and visibility
Worked out some bugs and added table visibility's
Some small improvements

- Renamed most variables (it's not done yet)
- Removed some unquote()-functions
- Added a few lines of comments