Added documentation, basic regex implementation and test cases