SamsungGalaxy S4 stuck on samsung logo
Having experienced booting problems before, it's usually suitable to simply perform a battery-pull as you've done. The state that your phone is almost certainly 'recoverable,' but may require re-flashing the firmware (i.e. potentially performing a factory reset).

Have a think about it, and possibly wait for any more input from the community. If there is no more useful feedback, I'd advise downloading a copy of the official firmware for the device (should be pretty simple to find on Google). Download ODIN3 (http://odin3.en.lo4d.com/) (a tool used for flashing ROM's to Android devices) and have a read up on how to use it.

To put your phone into 'download mode,' reset the device and hold [POWER] + [HOME] + [VOLUME DOWN]. It should say "Downloading.. do not turn off target" or similar if performed successfully. Your computer should pick up the device and it is now primed for flashing.