Detection and Decoding for Magnetic Storage Systems