Removed unused code.
Merged test files.
Changed method name.
Added support for errors.
Moved private method at the end.
Added method to change vendor directory.