Initial commit with working tests and docs