Fixed issues in sim.c

Code will still not compile at this point
Added a travis builder for iris