Added exception handling.
Added files.