a few changes so display works...
fixing display of beam pattern (I hope, not sure about accuracy)