functional install command
add delete_dir helper function
Many small fixes