started heartbeat process and added bcm libraries
merged with master