Fixed many small errors regarding exceptions and void methods