Fixed some Problems and added permissions to manifest