DocBlock fixes
Add an effectively installed check
Remove unused variable
Cast to integer in file size function
Refactor javascript to coding guidelines