added usage to petra so it could more easily be used as a script.