removed main function. moved unit tests to separate file