Added exception handling
Added time example
Added init functions
TODO Test for real-case use data