add basic functionality for skill tree plus other small code cleanup