fixed bugs with json builder and added force flag to bam2wig