fixed missing self. in implementation printout
fixed permissions for .cpp and .h files (Thanks Mojca!)