revamping of code architecture. Lots of blank functions added which will be filled in later. Encryption code added