Fixed sleep bug. Setup function now needs a frequency to operate.

Updated examples and readme too.