Add flash and dry code.

it closes #23 and it closes #14