Various bugfixes

- Warnings removed
- Many bugfix
- Graphics improvements