Update Skill constructor and setSkill function

This pull request permits to resolve the issues #35 and #45.