Fixed more bugs with tdt_lib and spatial PDR

Logical statements and circular buffer issues. Also, fixed paths to
work on my mac laptop.