Imported the code from the libs in typerex & removed dependencies