I have seen few small issues in the code. Some variables where initialized but not used so I removed them.