added mapping code
more mapping code
added properties check
added resource files for testing