Code added to extract modules list for any given PID.

Note: Code is not tested yet.