Removed obsolete files and added ci option
Added ci option
Make sure returns right error code and takes CI mode seriously