Updated StoreData Function

Rewrote the function to store data properly and assign the default
examples for the form correctly.