changed the dict() to dict:dict() in the type spec of types and generated the -type spec for each record in the _types.hrl file