changed format of data saved to something more JavaScript friendly and added input fields for initial counts