Update copyright year
Fix warnings
Add check if file exists
Add string buffer check
Bump version to 0.4