move runtime methods from LightnCandy to LCRun. add more doxygen comments