Fixed syntax and readme description

Fixed issues with immediate function invocation syntax and readme description for more useful sample.