add array methods and re-org

fixes #5