Moved cli code inside the library
Added files comand line.
Added projectDir argument.