My Functions are added.
@minar09 I have commented out some of your functions in yours as I have little glitch in merging.