Added object detector class, reading from files