Added support for script class select
Added support for log last executed command
Removed unused variables and added slashes substitution on commands class name