Clean up and implement knightos init