added serializer and views for measurement class, also small change in alarm models