Added serialization
Fixed all exceptions:D But fucking vault doesn't want to cooperate...