fixed bug with returns from try-catch, added some errors for incorrect/missing returns