Now doesn't fail if the file is smaller than 128KBytes

Migration to Autovala
Added cmake files