removed redundancies in code
added price/time prio sorting and matching with test case
added log framework