Added exceptions and flashes
Added options parser