added debugging and help options