Created all functions in core-file, and implemented some of them.