All functions implemented.
Moved to correct folder. Fixed function render and destroy.
Fixed some problems and warnings.