a first version of sd init & read/write blocks program