corrected f_CPU; simplified mechanics
added inturrupts and macros; works