added tips for debugging and rules for if statements and loops