Added ng-model support and added test cases. Styled the demo page a bit.