CMake and code enhancements

The first commit makes it more convinient to start the simulation when built through CMake (just ./darknetsim in the build-directory).
The second one enhances the code a little and fixes a TODO.