Initial implementation for most module functions added.