Added relative import in package modules. Add mainfunctions.py file.