Various fixes

Uses updated fpm flags, handles upgrades, added docs.