Grammar mistakes fixed. Unit tests added.