Bugfix - package manager and check for successful writing of files.
Package manager - form html modification
Improved error handling in package manager