deleted old code, and added small fix for ini writer.