minor changes on lay_lib(add crs support). major changes on adj_lib(now using adj_lib_new instead of adj_lib). function works on test data. need cleaning before using on sample data