refactoring of code plus adding option to add a column to central list

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>
removing trailing white spaces

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>