Enable return type warning and change empy methods to throw exceptions