This post will probably be the biggest one. Plugging everything was the biggest challenge. I managed to reconfigure all the Wiring to get everything to work, using the wiring diagram provided by Milleym (http://visforvoltage.org/forum/3712-xb600-wiring-diagram-groovy). Since my old luyuan bike had two 48v battery pack, I wanted to plug them in parallel to be able to get more amps to the motor. Here is how I did that.