added profile model and some methods
tests, more models, errors etc