if the handler method is not exported we add a notice via lager.

Also add type specs
add lager transform to the compile options
adjusting types
fixed a spec type
refactoring and specs