Fix for InvalidOperationException not extending RuntimeException
Added NotImplementedYetException into InvalidCode exceptions