Restructured "skill.c"

Realigned code and increased readability