Porting Dagu Rover 5 code for Photon

Hi

i would like to use the code and libraries here: Dagu Explorer 5 Wall Follower
but i have no idea where to start, I have a little experience but not enough.
Any help will be much appreciated.

Thanks