cleaned up bmdk.java

untested