Added end of state check in core.py
Added simple apps to demonstrate ping