Massive cleaning. Fixed commands, Added permissions.