implemented working controls + bettered debug messages