Adding additional if ability
Adding documentation