integrated LED code

also tidied up comments.
LED code from chinese board CD.
changed FivePhaseClarke() to float