added normaliseSinfo function to keep output from freeview in step with output from database