Refactored psm1 and added Extensions to module