Cleaned learning.py for better readybility.
Finished refactoring files for cleaner learning.