removed some unused files
fixed permissions
upated protocols example in advanced. who knows in basics.