added time. more tests and samples