Revert "Changed from library to ino, fixed bugs"

This reverts commit 360bf06d113b851a2bef915a31dec1144742a965.
changed from c to cpp
fixed dependencies

needs #include "CCFlash.h" in any .ino script