major rewrite to the code and created a version file

i fixed a ton of bugs and insecure redundant code.
Merge branch 'release/majorUpgrade'
Merge tag 'tagsmajorUpgrade' into develop

major more stable version of the code