Some small fixes and changes made; BSD license added.