added lots of library code
added to gamelib
fixed
added new res
Merge branch 'develop'