renamed file demo to core
added check for correct working directory
Renamed the packages and files according to the changed demo name