added 'cleanup_allocd_mem' function
fixed bug in not being able input text into spin buttons, also added initial UI elements for Q-format functionality