Added logic package
Minor changes to logic_control.py