Complete Code Rewrite

Found better way to handle dynamic style injection.