Added autosafe when compiling
optimized right panel
Optimizations and comments