new fields for index

added new fields to index (upper and lower price, start and end time)
restructured code a little