added logging framework, improved vector methods