general cleanup plus additions

fixed bug in wapi
added parentRS.html to simulate reading system
prototype code to subscribe to events