moved domain folders to lib, added lib as autoload_path, scaffold hr pickup and complete logic into model