code changed_full resolusion
Refactored code

added machine learning and data writing function files. The machine
learning will also include the training of the system.
Merge remote-tracking branch 'origin/master' into Alex
Merge pull request #3 from AlexDM0/Alex

Alex