add comments, make fval more strict

Signed-off-by: Fotis Georgatos <fotis.georgatos@uni.lu>