Rewrote build script to use classtools