Added module functionality

Created module files.