Fixed remote storage and retrieval issues for different operating systems. Added support for remote storage of IM calculation.