implemented and tested actual function of software. Seems to be working, has to be cross-checked with DB online interface though.