Rewritten task switch&fork code. Fixed one annoying bug. Some tricks...