Initial commit of Version 4.1.0.
Code refactor + gui testing.