Solved most concurrency bugs

Changed to a more responsive style of arranging available instructions for threads. Also applied correct lock on "Store" object to avoid concurrent modification.