Total refactor with LEG parser & rake-based build