some small implementation for tomorrow
Added VLD to solution to check for leaks, made small changes to implementation