Ionize to Kohana script finished, minor errors fixed