I have a problem in my Windows 8 Lenovo laptop

Hello experts,
Few months ago, I bought this Lenovo IdeaPad 510P laptop. It is really a great laptop but lately, I've been getting errors on it. When trying to connect my mouse to the USB port, it won't work. But before unplugging it few minutes before, it was working perfectly fine.
Also, when trying to restart or shuts down my computer, it will take 15-25 minutes and the loading Windows 8 circle animation remains on my screen. What can I do to resolve this problem? I will be very thankful and will appreciate all answers.
Thank you.
