added writing to a magic register (was not very clear in the datasheet), added re-init after soft reset