Implemented if, exit, result, return. Added documentation. Reworked issues with if statement template