Improved readability by reformatting some source code

Changed GetLLM_dev.py. Renamed bd to beam_direction and smaller code
improvements.