Tests added, code refactored.

Additional validation tests added using selenium. Spec flow added