Bug with population fixed. Some output issue fixed also.