Restructured "skill.c"

Corrected alignment of the code and added a few comments.