Implemented orders logic, added sessions mechanism, improved interface