added/fixed @signal declarations, fixed type of emitted values