Fixed warnings. Removed unimplemented "strictmode". Code formatting.