Roles and more

Did most of roles code and package and settings code