Updating code base

Updated code for entire project. Added in functions an updated less.