Added testing, fixed unix time conversion, added exception