Exploring Self-Assembly And Photomechanical Switching Properties Of Molecules At Surfaces