Minor code fixes and support for Netbeans, InteliJ IDEA and Eclipse.