Added Exceptions

Uses exceptions properly now