Removed most #if 0's. Removed k4 code. Changed waklog_aklog so it doesn't segfault...