implemented id3 tree and restructured package a bit