Added commit command and test
fixed typo
Fixed method annotations
Added test