Added entity models, as well as some safety checks.

Added basic entity models. Will be expanded on in the future.