Check the link below
https://motohell.com/index.php?topic=5445.0worked for me.
The Direct Wire method will charge your battery... how 2:
1) Mark ONE of the wires with correction fluid/tippex around 6-8 inches from the part that plugs into the phone.
2) cut the wire at the point were there was correction fluid
3) strip around 1cm of wire making sure you know which one is marked - this is important as you need to re-join the wires later in the correct way.
4) Sticky tape one wire to positive on battery, the other to negative.
LEAVE TO CHARGE OVERNIGHT!! If it's original OEM battery then it will auto switch off.
Put battery in phone whilst holding * and # and you should get to the bootloader.
Try flashing your phone, follow the directions in the link above. Worked for me perfectly.
As for software, check the main page
HERE and do a bit of reading.