fixed overcommented core.c (except draw functions - rewrite on todo list)