if your phone boot up properly and you can flash it too, then i advice you to make some search about this lock code problem you seem to have, you can recover it. Also, for your slowness problem, you should have a look at CSSU, you can also make a search on this forum about it. even google will give you some links. Now, i will disconnect and wish you happy learning and tweaking your device.