Added spec and documentation