reorganised the rebuilding finctions
Merge branch 'master' of github.com:unepwcmc/SAPI
sample controller spec
Merge branch 'master' of github.com:unepwcmc/SAPI