Monte Carlo Ray-tracing simulations of neutron guides and inverted geometry instruments