Added memory fix by freeing various objects after use. Additionally the listbox will now only hold up to 100 elements to avoid overflow.