some revision

more stability in code and reworking the sprites.