Fix some incorrect function calls
fixed command detection and added more output to silent execution
minor fixes