Removed unnecessary modules
Updated gitmodules
Added many libraries and fixed the update layout event