add variable type check
fix argument passing bug for sequential synchronize method
fix value of parallel flow results and context
add API Documentation