Merge pull request #1 from embedcard/master

Fixed casting warnings. Added condition to only log if running on simula...