Made few classes abstract and fixed log class a bit.