Big file containing many functions broken into smaller modules. Function description present in each module

Signed-off-by: sachin <sachinbhat.as@gmail.com>
Huge file broken into smalller modules. Each module has description in the file.

Signed-off-by: sachin <sachinbhat.as@gmail.com>