- Moved back to using splitAt for j and w values.
- Renaming of functions and variables for clarification.