Refactoring of internals

Removed the $._spritely object and did some other tweaks.