Permition issue solved, minor comments added