add a type field

It can be called directly from main. with tiltle, type, description,
time and level of importance.