Finished functionality

fully working
added some statistics